import request from '@/utils/request'

// 查询资产分类列表
export function listPropertyCategory(query) {
  return request({
    url: '/it/propertyCategory/list',
    method: 'get',
    params: query
  })
}

// 查询资产分类详细
export function getPropertyCategory(id) {
  return request({
    url: '/it/propertyCategory/' + id,
    method: 'get'
  })
}

// 新增资产分类
export function addPropertyCategory(data) {
  return request({
    url: '/it/propertyCategory/save',
    method: 'post',
    data: data
  })
}

// 修改资产分类
export function editPropertyCategory(data) {
  return request({
    url: '/it/propertyCategory/update',
    method: 'put',
    data: data
  })
}

// 删除资产分类
export function delPropertyCategory(id) {
  return request({
    url: '/it/propertyCategory/remove/' + id,
    method: 'delete'
  })
}

// 查询资产分类下拉树结构
export function propertyCategoryTree() {
  return request({
    url: '/it/propertyCategory/propertyCategoryTree',
    method: 'get'
  })
}


// 导出资产分类
export function exportPropertyCategory(query) {
  return request({
    url: '/it/propertyCategory/export',
    method: 'get',
    params: query
  })
}
